//
//  DataUtil.h
//  XYTest
//
//  Created by yao zhaofeng on 2018/4/17.
//  Copyright © 2018年 YaoZhaofeng. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface DataUtil : NSObject

+ (void)saveDataByNSUserDefaults:(id)data forKey:(NSString *)key;
+ (id)readDataFromNSUserDefaultsForKey:(NSString *)key;

+ (BOOL)saveDataByNSFileManager:(NSString *)data ForPath:(NSString *)path;
+ (NSString *)readDataByNSFileManagerForPath:(NSString *)path;

+ (NSString *)valueForKey:(NSString *)key
           fromQueryItems:(NSArray *)queryItems;
@end
